package com.faxsun.pojos;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import mblog.core.pojos.Post;
import mblog.core.pojos.Tag;

/**
 * 按Tag聚合的结果类
 * @author songdragon
 *
 */
public class TagAggregation implements Serializable{

	
	/**
	 * 
	 */
	private static final long serialVersionUID = 9038015958353325917L;
	
	private List<Post> infos;
	private List<Post> evaluations;
	private List<Tag> tags;
	
	public TagAggregation(){
	}
	
	public List<Post> getInfos() {
		return infos==null?new ArrayList<Post>():infos;
	}
	public void setInfos(List<Post> infos) {
		this.infos = infos;
	}
	public List<Post> getEvaluations() {
		return evaluations==null?new ArrayList<Post>():evaluations;
	}
	public void setEvaluations(List<Post> evaluations) {
		this.evaluations = evaluations;
	}

	public List<Tag> getTags() {
		return tags;
	}

	public void setTags(List<Tag> tags) {
		this.tags = tags;
	}
	
	public void addEvaluations(Post post){
		if(evaluations==null){
			evaluations=new ArrayList<Post>();
		}
		evaluations.add(post);
	}
	
	public void addInfos(Post post){
		if(infos==null){
			infos=new ArrayList<Post>();
		}
		infos.add(post);
	}
	
	
}
